import { Config } from './index';

/**
 * 测试环境配置
 */
export const testConfig: Partial<Config> = {
  app: {
    env: 'test',
    port: 3001,
    name: 'jmtemp-server-test',
    version: '1.0.0',
  },
  database: {
    mongodb: {
      uri: 'mongodb://localhost:27017/jmtemp_test_db',
      testUri: 'mongodb://localhost:27017/jmtemp_test_db',
    },
    mysql: {
      host: 'localhost',
      port: 3306,
      username: 'root',
      password: 'password',
      database: 'jmtemp_test_db',
    },
  },
  log: {
    level: 'warn',
    filePath: 'logs/test.log',
  },
  swagger: {
    enabled: false,
    path: '/api-docs',
  },
};